<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>创建狂想活动 - 第三步 设置活动奖品</title>
<link href="http://g.alicdn.com/bui/bui/1.1.21/css/bs3/dpl.css" rel="stylesheet">
<link href="http://g.alicdn.com/bui/bui/1.1.21/css/bs3/bui.css" rel="stylesheet">
<script src="http://g.tbcdn.cn/fi/bui/jquery-1.8.1.min.js"></script>
<script src="http://g.alicdn.com/bui/seajs/2.3.0/sea.js"></script>
<script src="http://g.alicdn.com/bui/bui/1.1.10/config.js"></script>
<script src="/assets/kxdr/steps.js"></script>
</head>
<body style="width:990px;margin:0 auto;padding:10px 0;">
 <div class="doc-content">
    <div class="panel">
      <div class="panel-body">
	  
	  <div class="row">
		<div class="span24 doc-content">
		<h3 class="pull-left">我的互动 >>  活动列表</h3>
		<a class="button pull-right" style="margin-left:10px" href="/"><i class="icon-home"></i>返回订单抽大奖</a>
		<a class="button pull-right" style="margin-left:10px" href="/?a=gamecfg&m=shopadmin&repick=1"><i class="icon-refresh"></i>重新选择活动类型</a>
		<a class="button button-success pull-right" href="/?m=Kxdr&c=Advance&a=Index"><i class="icon icon-home icon-white"></i></a>
		</div>
	  </div>
	  </div>
	  </div>
	  </div>
 <div class="doc-content">
    <div class="panel">
      <div class="panel-header">
        <h3>创建狂想活动</h3>
      </div>
      <div class="panel-body">
	  <div class="flow-steps" style="margin:0 auto;width:948px">
		  <ol class="num4">
			<li class="first">1.选择活动项目</li>
			<li class=" current-prev">2.选择队伍和猜分方式</li>
			<li class="current">3.设置活动奖品</li>
			<li class="last">4.完成</li>
		  </ol>
		</div>
		<div class="row show-grid">
	  <div class="span8 offset1">
		<div class="panel">
		  <div class="panel-header clearfix">
			<h3 class="pull-left">比赛概览</h3>
		  </div>
		  <img src="{$pic_url}_300x300.jpg" class="centered" />
		  <div class="panel-body">
		  <p>比赛名称：{$game_name}</p>
		  <p>参赛选手：{$player}</p>
		  <p>活动描述：{$descrip|default:""}</p>
		  <p>选手描述：{$player_descrip|default:""}</p>
		  <p>猜什么：{$cffs}</p>
		  <p>比赛开始时间：{$start}</p>
		  <p>开奖时间：{$gifting_time}</p>
		  <p>截止时间：{if $jzfs==0}开赛前{else}开赛后{/if}{$jzsj}分钟</p>
		  <p>需要积分：{$cyjf}积分</p>
		  </div>
		</div>
	  </div>
	  <div class="span15">
	  	<ul class="breadcrumb">
			<li class="active">设置猜分和奖品</li>
		  </ul>
		  <div class="row js-giftlist">
          <div class="control-group span15">
            <div class="controls js-gift-list">
			  {if $gifts}
			  {foreach from=$gifts item=item}
				<div class="well well-small button-tabs gift{$item.id}"><button class="button button-mini"><i class="icon icon-certificate"></i>{$item.score_diff}</button> 的买家可 <button class="button button-mini"><i class="icon {$item.icon}"></i>{$item.get_type_name}</button>奖品<button class="button button-mini"><i class="icon icon-gift"></i>{$item.name}</button> 共 <button class="button button-mini"><i class="icon icon-filter"></i>{$item.event_quant}名</button>&nbsp;<button class="button button-mini button-warning js-delgift pull-right"  data-gid="{$item.id}">删除</button></div>
			  {/foreach}
			  {else}
              <div class="well well-small button-tabs js-nogift" id="l3">
			  请添加奖品
			  </div>
			  {/if}
			</div>
          </div>
        </div>
		  <div id="content" class="hide">
		<form id="J_Form" class="form-horizontal">
        <div class="row">
          <div class="control-group span15">
            <label class="control-label">买家猜分差距：</label>
            <div class="controls">
              <div id="s4">
				  <input type="hidden" class="js-cfcjval" value="b" name="hide">
				  <input name="id" type="text" class="input-small control-text js-cfcj" style="display:none" value="0">
				  <span class="auxiliary-text pull-right">买家猜测的得分和实际得分之差</span>
			 </div>
            </div>
          </div>
        </div>
        <div class="row">
          <div class="control-group span15">
            <label class="control-label">可获取奖品：</label>
            <div class="controls">
			<input type="hidden" class="gift-name" />
			<input type="hidden" class="gift-id" />
              <div id="s5">
				  <input type="hidden" class="js-hqjpval" value="b" name="hide">
				  <input name="id" type="text" class="input-small control-text js-hqjp" style="display:none" value="0">
			   <!-- <button type="reset" class="button button-small" style="margin-left:5px">增加</button> -->
			  <span class="auxiliary-text pull-right">如看不到奖品请<a href="/?m=shopadmin&c=gifts&a=add&ctp=all" target="_blank">添加</a>，然后刷新</span>
			  </div>
            </div>
          </div>
        </div>
        <div class="row">
          <div class="control-group span15">
            <label class="control-label">获取奖品的方式：</label>
            <div class="controls">
              <div id="s6">
				  <input type="hidden" class="js-hqfsval" value="b" name="hide">
				  <input name="id" type="text" class="input-small control-text js-hqfs" style="display:none" value="0">
				  <span class="auxiliary-text pull-right">各种领奖方式的<a href="#" target="_blank">详细介绍</a></span>
			  </div>
            </div>
          </div>
        </div>
        <div class="row js-set-jpgl hide">
          <div class="control-group span15">
            <label class="control-label">奖品概率：</label>
            <div class="controls">
			  <input name="id" type="text" class="pull-left input-small control-text js-jpgl" style="background:url(http://img03.taobaocdn.com/imgextra/i3/44173724/TB2JPlHcpXXXXbvXXXXXXXXXXXX-44173724.jpg) 0 5px no-repeat"  value="0">
			   <div id="sl1" class="span5"  style="margin-top:8px"></div>
            </div>
          </div>
        </div>
        <div class="row js-set-jpgl hide">
          <div class="control-group span15">
            <label class="control-label">抽奖次数：</label>
            <div class="controls">
			  <input name="id" type="text" class="pull-left input-small control-text js-cjcs"   value="0">
			   <div id="sl3" class="span5"  style="margin-top:8px"></div>
            </div>
          </div>
        </div>
        <div class="row js-set-dddj hide">
          <div class="control-group span15">
            <label class="control-label">订单付款金额：</label>
            <div class="controls">
			  <input name="id" type="text" class="pull-left input-small control-text js-ddje"   value="0">元以上
            </div>
          </div>
        </div>
        <div class="row js-set-dddj hide">
          <div class="control-group span15">
            <label class="control-label">付款时间：</label>
            <div class="controls bui-form-group" data-rules="{ldelim}dateRange : true{rdelim}">
              <input class="pay_time_start calendar" value="{$pay_time_start|default:""}" data-tip="{ldelim}text : '付款时间'{rdelim}"  class="input-small calendar " type="text"><label>&nbsp;-&nbsp;</label>
              <input class="pay_time_end calendar" value="{$pay_time_end|default:""}" data-tip="{ldelim}text : '付款时间'{rdelim}"  class="input-small calendar " type="text">
			</div>
          </div>
        </div>
        <div class="row">
          <div class="control-group span15">
            <label class="control-label">数量：</label>
            <div class="controls">
			  <input name="id" type="text" class="pull-left input-small control-text js-jpsl" value="0">
			   <div id="sl2" class="span5"  style="margin-top:8px"></div>
            </div>
          </div>
        </div>
    </form>
	</div>
		<div class="row">
          <div class="control-group span15 offset6">
			<button type="reset" class="button button-warning js-addgift">添加奖品</button>
		  </div>
		</div>
        <div class="row form-actions actions-bar" style="margin-left:0">
            <div class="span13 offset5 ">
              <a type="submit" href="/?m=Kxdr&c=Advance&a=step4" class="button button-primary">下一步</a>
              <a type="reset" href="/?m=Kxdr&c=Advance&a=step2">上一步</a>
            </div>
        </div>
	  </div>
</div>
</body>
</html>